Optimal. Leaf size=74 \[ -\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b} d}+\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2747, 722,
1107, 212} \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{d \sqrt {a+b}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{d \sqrt {a-b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 722
Rule 1107
Rule 2747
Rubi steps
\begin {align*} \int \frac {\sec (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx &=\frac {b \text {Subst}\left (\int \frac {1}{\sqrt {a+x} \left (b^2-x^2\right )} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=\frac {(2 b) \text {Subst}\left (\int \frac {1}{-a^2+b^2+2 a x^2-x^4} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \frac {1}{a-b-x^2} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{d}+\frac {\text {Subst}\left (\int \frac {1}{a+b-x^2} \, dx,x,\sqrt {a+b \sin (c+d x)}\right )}{d}\\ &=-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b} d}+\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 74, normalized size = 1.00 \begin {gather*} -\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b} d}+\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \sin (c+d x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.27, size = 60, normalized size = 0.81
method | result | size |
default | \(\frac {\frac {\arctanh \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {a +b}}\right )}{\sqrt {a +b}}+\frac {\arctan \left (\frac {\sqrt {a +b \sin \left (d x +c \right )}}{\sqrt {-a +b}}\right )}{\sqrt {-a +b}}}{d}\) | \(60\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec {\left (c + d x \right )}}{\sqrt {a + b \sin {\left (c + d x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.49, size = 75, normalized size = 1.01 \begin {gather*} \frac {b {\left (\frac {\arctan \left (\frac {\sqrt {b \sin \left (d x + c\right ) + a}}{\sqrt {-a + b}}\right )}{\sqrt {-a + b} b} - \frac {\arctan \left (\frac {\sqrt {b \sin \left (d x + c\right ) + a}}{\sqrt {-a - b}}\right )}{\sqrt {-a - b} b}\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{\cos \left (c+d\,x\right )\,\sqrt {a+b\,\sin \left (c+d\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________